﻿namespace Cadcam7Moddel.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.ComponentModel.DataAnnotations;
    [Table("Trang")]
    public partial class Trang
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        [Required(ErrorMessage = "Chưa nhập")]
        public string Tieude { get; set; }
        public string Hinh { get; set; }
        public string Tomtac { get; set; }
        public string Noidung { get; set; }
        public System.DateTime Ngaytao { get; set; }      
        public int Luocxem { get; set; }
        public int Thutu { get; set; }
        public bool Hien { get; set; }
        public bool Trangchu { get; set; }

        
        public string LangID { get; set; }
        [ForeignKey("LangID")]
        public virtual  NgonNgu NgonNgu { get; set; }

        public int ItemID { get; set; }
        [ForeignKey("ItemID")]
        public virtual ObjectItem ObjectItem { get; set; }
       
    }
    
}
